{include file="public/header" /}

<form>
    <select class="form-control" name="view_type">
    <option value="all">全部</option>
        {volist name="view_type_arr" id="vo"}
        <option value="{$key}" {if $view_type eq $key} selected {/if}>{$vo}</option>
        {/volist}
    </select>
</form>
<div class="table-responsive">
  <table class="table">
    	<tr>
    		<th>序号</th>
    		<th>帐号</th>
    		<th>昵称</th>
    		<th>状态</th>
    		<th>等级</th>
    		<th>创建时间</th>
    	</tr>

    	{volist name="list" id="vo" empty="暂时没有数据"}
		<tr {if $key%2 == 0}class="success"{/if}>
    		<td>{$key+1}</td>
    		<td><a href="{:url('back/account/detail', ['mobile'=>$vo.mobile])}">{$vo.mobile}</a></td>
    		<td>{$vo->nickname|default="暂无设置"}</td>
    		<td>{$vo.state}</td>
    		<td>{$vo->level|default="0"}</td>
    		<td>{$vo.create_time}</td>
    	</tr>
		{/volist}
  </table>
</div>

{include file="public/footer" /}

{literal}
<script type="text/javascript">
    $('select').change(function() {
        $(this).parent().submit();
    });
</script>
{/literal}